﻿namespace IssueVision.Data.Web
{
    /// <summary>
    /// SubStatus class client-side extensions
    /// </summary>
    public partial class SubStatus
    {
        /// <summary>
        /// Returns white space when the name is null
        /// </summary>
        public string DisplayName
        {
            get { return _name ?? " "; }
        }

        /// <summary>
        /// Returns a Nullable substatus ID
        /// </summary>
        public byte? SubStatusID2
        {
            get {
                return _name == null ? default(byte?) : _subStatusId;
            }
        }
    }
}